package com.hy.entity.vo;

import com.hy.entity.pojo.HyUser;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class HyUserVO extends HyUser {

    /**
     * 部门
     */
    private String department;
    /**
     * 单位
     */
    private String authorization;
    private String unit;


    private List<Integer> roleIds=new ArrayList<>();
    private List<String> roles=new ArrayList<>();

    public void  addRole(String role){


        roles.add(role);
    }
    public void  addRoleIds(Integer roleId){


        roleIds.add(roleId);
    }
}
